// const request = require('request')

// request.post(
//   '/todos',
//   {
//     json: {
//       todo: 'Buy the milk',
//     },
//   },
//   (error:any, res:any, body:any) => {
//     if (error) {
//       console.error(error)
//       return
//     }
//     console.log(`statusCode: ${res.statusCode}`)
//     console.log(body)
//   }
// )



import { request } from 'http';
// import { Http2ServerRequest } from 'http2';
 
const req = request(
  {
    host: 'jsonplaceholder.typicode.com',
    path: '/todos/1',
    method: 'GET',
  },
  response => {
    console.log(response.statusCode); // 200
  }
);
 
req.end();


import { Server as HttpServer} from 'https';

var sss = new HttpServer(); 